<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="static/css/admin/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="static/js/common.js"></script>
</head>
<body>
<div class="colorarea01">
	<div class="search clearfix">
		<div class="searchL">
			<ul class="menulist">
				<li><a href="<{$adminpage}>?m=news&a=add" class="add">添加新闻</a></li>
			</ul>	
		</div>
		<div class="searchR">
		<form action="<{$adminpage}>" method="get" name="form2">
		<table cellspacing="0" cellpadding="0" class="toptable">
			<tr>
				<td>
					<{$selectcategory}> <input type="text" name="keywords" id="searchkey" value="" class="inp01"> &nbsp;<input type="submit" name="filtersubmit" value="查询" class="combutton02"><input type="hidden" name="m" value="news">
					<input type="hidden" name="a" value="list">
				</td>
			</tr>
		</table>
		</form>
		</div>
	</div>
	<form action="<{$adminpage}>?m=news" method="POST" name="form">
	<table cellspacing="0" cellpadding="0" class="listtable">
	<tr>
		<th width="30">选择</th>
		<th width="30">ID</th>
		<th>标题</th>
		<th>分类</th>
		<th>发布时间</th>
        <{php}>
        if(!$_SESSION['ADMIN_AID']){
        <{/php}>
        <th>发布者</th>
        <{php}>
        }
        <{/php}>
		<th>状态</th>
		<th>浏览</th>
		<th width="160">操作</th>
	</tr>
	<{foreach from=$newslist item=news}>
	<tr>
		<td align="center"><input type="checkbox" name="bulkid[]" value="<{$news.n_id}>"></td>
		<td align="center"><{$news.n_id}></td>
		<td><a href="<{$htmldir}>news/<{$news.n_date}>/<{$news.n_id}>.html" target="_blank"/><{$news.n_title}></a> <{if $news.n_pic<>''}><span class="red">图</span><{/if}> <{if $news.isrecom==1}><span class="red">推荐</span><{/if}>  </td>
		<td align="center"><{$news.n_category}></td>		
		<td align="center"><{$news.n_addtime}></td>
        <{php}>
        if(!$_SESSION['ADMIN_AID']){
        <{/php}>
        <td align="center"><{if $news.admin_id==0}>系统管理员<{else}><span class="red">代理商</span>(<{$news.province}>)<{/if}></td>
        <{php}>
        }
        <{/php}>
		<td align="center"><{if $news.isshow==1}>显示<{else}><span class="red">关闭</span><{/if}></td>
		<td align="center" class="orange01"><{$news.n_hits}></td>
		<td align="center" class="rightmenu">
            <{php}>
            if(!$_SESSION['ADMIN_AID']){
            <{/php}>
            <a href="<{$adminpage}>?m=news&a=html&id=<{$news.n_id}>&page=<{$page}>" class="html">生成静态</a> |
            <{php}>
            }
            <{/php}>
            <a href="<{$adminpage}>?m=news&a=edit&id=<{$news.n_id}>&page=<{$page}>" class='edit'>编辑</a> | <a href="javascript:if(confirm('确实要删除吗?'))location='<{$adminpage}>?m=news&a=del&id=<{$news.n_id}>&page=<{$page}>'" class="del">删除</a>
	</td>
	</tr>
	<{/foreach}>
	<tr>
		<td colspan="9" class="buttontd" style="text-align:left;">
			<a href="javascript:javascript:selectAll();" title="请选择后操作">全选</a>
            <{php}>
            if(!$_SESSION['ADMIN_AID']){
            <{/php}>
            <a href="javascript:submitForm('<{$adminpage}>?m=news&a=bulkdel&page=<{$page}>','删除');" title="请选择后操作">删除</a> <a href="javascript:submitForm('<{$adminpage}>?m=news&a=bulkhtml&page=<{$page}>','生成静态');" title="请选择后操作">生成静态</a>
            <{php}>
            }
            <{/php}>
		</td>
	</tr>
	</table>
	</form>
	<div class="listpage"><{$button_basic}><{$button_select}></div>
</div>
</body>
</html>